package com.parkreport.job;

import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.parkreport.report.service.AreaCarNextReportService;
import com.parkreport.report.service.AreaCarReportService;
import com.parkreport.report.service.AreaPersonNextReportService;
import com.parkreport.report.service.AreaPersonReportService;

public class DayJob implements Job {
	Logger log = Logger.getLogger(DayJob.class);
	static private boolean b= true;
	
	AreaCarReportService areaCar = new AreaCarReportService();
	AreaPersonReportService areaPerson = new AreaPersonReportService();
	AreaCarNextReportService areaCarNext = new AreaCarNextReportService();
	AreaPersonNextReportService areaPersonNext = new AreaPersonNextReportService();
	
	
	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		log.info("========执行===DayJob==");
		areaCar.excuteTimer("day");
		areaPerson.excuteTimer("day");
		areaCarNext.excuteTimer("day");
		areaPersonNext.excuteTimer("day");
		
	}
}
